package com.caption.api.support;

import com.caption.api.client.FaceAuthClient;
import com.caption.api.client.IDCardAuthClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Component;

/**
 * 资源对象管理器
 */
@Component
public class ApiSupport {
    @Autowired
    private IDCardAuthClient idCardAuthClient;
    @Autowired
    private FaceAuthClient faceAuthClient;
    @Autowired
    private ThreadPoolTaskExecutor commonExecutor;

    public IDCardAuthClient getIdCardAuthClient() {
        return idCardAuthClient;
    }

    public FaceAuthClient getFaceAuthClient() {
        return faceAuthClient;
    }

    public ThreadPoolTaskExecutor getCommonExecutor() {
        return commonExecutor;
    }
}
